package com.wyp.service;

import com.wyp.entity.MSOrder;
import com.wyp.vo.GoodsVO;
import com.wyp.entity.OrderInfo;
import com.wyp.entity.User;

import java.awt.image.BufferedImage;

/**
 * @author: Oliver
 */
public interface MSService {
    OrderInfo MS(User user, GoodsVO goods);

    MSOrder getMSOrderByUserIdAndGoodsId(User user, GoodsVO goods);

    long getMSResult(Long id, long goodsId);

    ;

    String createPath(User user, Long goodsId);

    boolean checkPath(User user, Long goodsId, String path);

    BufferedImage createVerifyCode(User user, Long goodsId);

    boolean checkVerifyCode(User user, Long goodsId, Integer verifyCode);
}
